package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.Warehouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseMapper {

    int insertSelective(Warehouse record);

    int updateByPrimaryKeySelective(Warehouse record);
    // 查询
    List<Warehouse> selectWarehouse(Warehouse warehouse);
    // 计数
    int countWarehouse(Warehouse warehouse);
    // 更改数据状态
    int definesWarehouse(@Param("warehouseIds") Long[] warehouseIds, @Param("dataState") Integer dataState);
    // 查重编码
    Integer queryWarehouse(Warehouse warehouse);
    // 查重名称
    Integer queryWarehouseName(Warehouse warehouse);
}